﻿using System.Windows;
using Microsoft.Phone.Controls;

namespace CCWP7.CaliburnMicro
{
    public partial class BrowserPage : PhoneApplicationPage
    {
        public BrowserPage()
        {
            InitializeComponent();
        }

        private void WebBrowser_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e)
        {
            MessageBox.Show(e.Exception.Message,
            "could not open the page",
            MessageBoxButton.OK);

            e.Handled = true;

            NavigationService.GoBack();
        }
    }
}
